const path = require('path');
const BA = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;

module.exports = {
    entry: {
        idx: path.resolve(__dirname, 'src/idx.js')
    },
    output: {
        path: path.resolve(__dirname, 'dist/'),
        filename: '[name].[chunkHash].js'
    },
    plugins: [
        new BA()
    ] 
}
